//
//  UserCenterHeadButton.m
//  xpkc
//
//  Created by TopSage on 15/10/16.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import "UserCenterHeadButton.h"

@implementation UserCenterHeadButton

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatHeader];
    }
    return self;
}

- (void)creatHeader{
    self.buttonImage.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.width);
    self.buttonImage.layer.borderWidth = 2;
    self.buttonImage.layer.borderColor = LightGreenColor.CGColor;
    self.buttonImage.layer.cornerRadius = self.frame.size.width/2;
    self.buttonImage.backgroundColor = WhiteSmokeColor;
    self.buttonImage.clipsToBounds = YES;
    
    self.buttonTitle.frame = CGRectMake(0, self.frame.size.width, self.frame.size.width, 20);
    self.buttonTitle.font = [UIFont systemFontOfSize:14];
    self.buttonTitle.textColor = [UIColor whiteColor];
    self.buttonTitle.textAlignment = NSTextAlignmentCenter;
    self.buttonTitle.text = @"点击登录";
}

@end
